package com.mobile.tools;

import java.util.HashMap;
import java.util.Map;

public class FieldInfo{
	private final Map<String,Class> map=new HashMap<String,Class>();
	public FieldInfo(){
		map.put("1", String.class);
		map.put("2", Long.class);
		map.put("string", String.class);
		map.put("boolean", Boolean.class);
	}
	private String fieldName;
	private String fieldTypeName;
	private Class  fieldType;
	private String fieldFormName;
	
	public String getFieldName() {
		return fieldName;
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	public String getFieldTypeName() {
		return fieldTypeName;
	}
	public void setFieldTypeName(String fieldTypeName) {
		this.fieldTypeName = fieldTypeName;
		setFieldType(map.get(fieldTypeName));
	}
	public Class getFieldType() {
		return fieldType;
	}
	public void setFieldType(Class fieldType) {
		this.fieldType = fieldType;
	}
	public String getFieldFormName() {
		return fieldFormName;
	}
	public void setFieldFormName(String fieldFormName) {
		this.fieldFormName = fieldFormName;
	}
	
}
